import bsinRequest from '../utils/bsinRequest';

// 获取待领取任务列表
export const getCandidateTasksByUser = (params: object) => {
  return bsinRequest('/getCandidateTasksByUser', {
    serviceName: 'BsinAdminProcessInstanceTaskService',
    methodName: 'getCandidateTasksByUser',
    bizParams: {
      ...params,
    },
  });
};

// 获取待办任务列表
export const claimCandidateTask = (params: object) => {
  return bsinRequest('/claimCandidateTask', {
    serviceName: 'BsinAdminProcessInstanceTaskService',
    methodName: 'claimCandidateTask',
    bizParams: {
      ...params,
    },
  });
};
